#ifndef CHOOSEZONE_H
#define CHOOSEZONE_H

#include "base.h"
#include "locale/TimeZone.h"

namespace Ui {
class ChooseZone;
}

class Config;
class QComboBox;
class TimeZoneWidget;
class ChooseZone : public Base
{
    Q_OBJECT

public:
    explicit ChooseZone(QWidget *parent = nullptr);
    ~ChooseZone();

    QString getModuleName() override { return "choosezone";}
    void start() override;
    bool nextStep() override;
    QList<QPair<QString, QString>> getData() override;

private slots:
    void locationChanged(const Locale::TimeZoneData* location);
    void regionChanged( int currentIndex );
    void zoneChanged( int currentIndex );

private:
    Ui::ChooseZone *ui;

    bool m_blockTzWidgetSet = false;
    Config* m_config;
    TimeZoneWidget *m_tzWidget;
    QString m_timezone;
};

#endif // CHOOSEZONE_H
